package wxusersocket.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wxusersocket.entity.Wxusersocket;
import wxusersocket.mapper.WxusersocketMapper;
import wxusersocket.service.Wxusersocketservice;

import java.util.List;

@Service
public class Wxusersocketserviceimpl implements Wxusersocketservice {
    @Autowired
    WxusersocketMapper wxusersocketMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return wxusersocketMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wxusersocket record) {
        return wxusersocketMapper.insert(record);
    }

    @Override
    public int insertSelective(Wxusersocket record) {
        return wxusersocketMapper.insertSelective(record);
    }

    @Override
    public Wxusersocket selectByPrimaryKey(Integer id) {
        return wxusersocketMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wxusersocket record) {
        return wxusersocketMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wxusersocket record) {
        return wxusersocketMapper.updateByPrimaryKey(record);
    }

    @Override
    public Wxusersocket selcetopenid(Wxusersocket wxusersocket) {

        return wxusersocketMapper.selcetopenid(wxusersocket);
    }

    @Override
    public Wxusersocket selectBymessagepid(String messagepid) {
        return wxusersocketMapper.selectBymessagepid(messagepid);
    }

    @Override
    public List<Wxusersocket> selectByopenid(String openid) {
        return wxusersocketMapper.selectByopenid(openid);
    }

    @Override
    public Integer deleteByUser(String messageid) {
        return wxusersocketMapper.deleteByUser(messageid);
    }

    @Override
    public Wxusersocket selectByuser(String messageid) {
        return wxusersocketMapper.selectByuser(messageid);
    }
}
